Refactored the cropping of the video