display an image instead of a text for the category in the tooltip

How would you display an image instead of a text for the category in the tooltip?

You can create a custom tag and display an image from each category
eg

  • marker2
    marker1