Changed how we get the images that are related to the document. Part of a change to download captions as well.
Create triples linking the image to its caption.