Program now works and adds the two transformations together (presumably) but I'm getting a malloc error after the program completes. Will take a look at that tomorrow and make second program to apply transformation to images in order to verify it is adding the transformations correctly.