Move savePNG method to private.