minor changes to png code