Objective-C: resize and mask an image