Rotate images to portrait mode