New version for program behind option savePng