wrote untested png write
simple image copy program shows dan_write_image is ok