added more fixes for chart image building.