Add savePNGFile function for histograms.

Render the histogram using vtk offline and then save the image to png
file.