Awareness of orientation when calculating the aspect ratio of preview.