working on fixing editing and saving of images