Update canvas-graphics.js