Translate to image anchor point, scale, rotate, translate back
Translate to image center before scale and rotation

Same treatment here as with the canvas replay.
Merge pull request #1428 from tschaub/image-scale

Properly scale and rotate images with anchor offsets.