Inserting images into graphs from local directory

I need help inserting images into plotly python graphs where the image is from a local directory.

I am following the guide: https://plotly.com/python/images/ but the source of images is always a github repo. I was wondering how I can grab a png from my local directory. For ex. let’s say I have a png in my img_assets folder. source = “img_assets/example.png” does not work.

Thank you in advance!

@SebastianC

Here I answered a similar question https://community.plotly.com/t/how-do-i-add-a-background-image-with-animation-graph/35725. Depending on your image resolution it could be necessary to uncomment the line:
#sizing="stretch".