better support for different video resolutions