documenting write_png and removing std naemspace from headers