correct orientation of image