Renders a png image from a series of mathematical functions