update Painter.js