Changed image output to png