adding support for video resizing