fixing reference to write_png