Fix attached image orientation bug.

As requested, just the image orientation fix.