Profile photo as template sensor icon

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 “” does.

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.