Implementing basic painter.