removed stats and charts, usage of  getLegendGraphics instead of png