Fix orientation while editing and cropping an image