updated no up pubs, writing png as well