small changes in iOS image processing