Write image data from the image to the file named filename.
tkinter/PhotoImage.write
PhotoImage.write