Support for UIImage's initWithData:scale: methods

These methods were added to UIImage in iOS 6. I took special care to make sure that both the imageWithData class methods return a UIImage if the image is not an animated GIF.