Flip/rotate tool works; currently rotation is anchored to the upper-left corner.

Eventually, the rotation should be anchored to the nearest pixel to the
center (rounded towards the upper-left corner).