I'm following Apple's example here. See UIImage.h in iOS6