Create an image of the outfitString

I am currently on a dashboard which is open as an external window. I got the avatar name and can display this on the external site. Now I would like to show an image of the avatar.

Is there an easy way to get a single “image” of the avatar from the outfitString. Or a function that “compiles” the outfitString to HTML or whatever?

Thanks 4 Infos or ideas