Update canvas.py