trimmed the image for the video