JavaScript and HTML5 canvas image editor