PNG exporting is compatible with both node-canvas (node-canvas branch) and browser runtimes