UMD js module for 2D image manipulation using canvases