JIRA 457: Move the image icon HTML template into a template tag to avoid code duplication.