Can you move this HTML into the template, as well? And ideally, the smallImageHTML as well?