added support for custom links in image captions