added resize for video