Make painter call into the drawing engine, rather than the drawing engine create and call the painter.