html5 canvas image editor with scale,rotate,flip-x,shift-xy functions