Forked Trevor Harmon's categories for UIImage. Fixes for proper retina screen scale image support and some compile warnings.