updated implementation of VIDEO_FIT_PARENT mode