Implementing simple painter.