Fix image ratio while cropping