Resolve figure references that live in the captions.