Category method to resize a UIImage