Update painter.js