Profile photo as template sensor icon

Hi,
Is there a way to use a person’s profile photo as the icon for a template sensor?
I have a custom template sensor that I’d like to inherit the respective users photo similar to how a badge of “person.name” does.
Thanks!

As far as I can find on Google, it’s only possible to set icons from an icon set for all types of sensors. You can load custom icon packs, but not an image.