Added a savePNG function to the image class.