An fork of Trevor Harmon's UIImage category methods, updated for the latest versions of iOS.