add image used in the document into the repository