[FEATURE] Provide related image information

The tooltip containers now have additional data attributes that contain
the UID of the related content element and the position of the related
image.

Relates: #51962