How to customize png for entity in UI?

Is there a way to use a png instead of an icon and do so in the user interface so that it shows up the same across my home assistant?

i have the icon in my www folder and i understand that the path would be /local/xxxx.png but i haven’t figured out where to put that file path in home assistant to replace the icon.

Thank you.