The link I posted already shows how to insert images whose names match names found in the document.