saving of text and image working