Get proper aspect ratio from photo.