check on input image to be rotated to best fit the current view orientation

check on input image to be rotated to best fit the current view orientation