Update graphics.py