Fix aspect ratio not being kept on edge cases

In some special cases only on dimension was getting re-adjusted despite setting `keepingCropAspectRatio` to `YES`.