Added saving to PngFormat class.