Okay, you wanted to rotate them. The most probabale way that you could do this is by rotating them in the image editor, but this can be quite annoying. Another way would be to find a program that rotates them for you. Or you could do it in memory, by conveting it to another image format... but that is really compelx and time consuming.
Your best option would be to build the image with the rotations already I think, unless you really wanted to do it in memory.