Adding graphics to a document