Tried to improve the save function, but something weird happens to images when you convert them to Tkinter format.