Added resizing and methods to UIImage, and fixed a bug in the NSObject category.