changed the orientation of an image