Update canvas.cpp