Update canvas.class.js