added video resizing