new public methods for savingToPng