implemented image output via gcharts