Only do the check for resizing if the feature is selected (i.e., resize_mode = RESIZE_DYNAMIC). And modify condition for checking to be resize_count >= window, (since framerate can change). Change-Id: Idceb4e50956bb965a1492b4993b0dcb393c9be4d