Update canvas-graphics.js

Matrix visualization added