upgrade to use new png.js