Update graphics.cc