Inside rotate( ), we specify by how many degrees. To turn the image clockwise, we add exactly 90deg.

Make sure to pick 90deg.