http://pulkitgoyal.in/2011/06/13/javascript-image-manipulation-using-html5-canvas-element-tutorial/