Use `addImageToTemplate()` in the `ContentHyperlink` class (see #7296)