Added ability to save png output for both stacked and pie type graphs, strict compatibility