Update graphics.cpp