Implemented the saving of files/images in file editor.