Fix caching of images in docx to use filenames instead of possibly
non-unique relationship ids.