UIImage+Resize hopefully more robust.