modified img-touch-canvas.js