writeGLImage(canvas, path, cb) {
        const buf = this.getGlImage(canvas);
        fs.writeFile(path, buf, cb);
    }
Write canvas as png image to file at given path
@param {Canvas} canvas canvas
@param {String} path file path
@param {Function} cb callback when finishing or error occuring