Plot a function to a png image with node.js