Do not override the "href" property in `addImageToTemplate()` (see #6468)