Update graphics.js