pythons - png image output