Allow rotating an image.

This can be done either by either calling Rotate(angle) or by the rotate
tag and its attribute angle in the theme. The angle value should be
multiple of 90 degrees.