An example project for my blog post. http://jslim.net/blog/2014-12-09-ios-crop-image-based-on-a-mask/