Rotate-specific code, that is when images are flipped around, can be found in this directory here.