Update Painter.cpp