Fixed portrait-mode's auto-rotation and scaling of image