edited code for png printout with neato