CHANGED IMAGE OUTPUT TYPE TO PNG