Create colored heat-map images (PNG) from a function passed as parameter