k, i wasn't able to reproduce it with you example, so after digging into it more, there's one additional step, if you call saveasimage with no change to rotation, and then change the rotation, and then saveasimage has the issue.
SaveAsImage
Rotate
SaveAsImage