Sets the image orientation.