http://www.appcoda.com/ios-programming-camera-iphone-app/