This is sample code for http://swapgo20.wordpress.com/2013/03/20/ios-simple-hand-drawing-with-eraser/