format histos into png files now works