As you rightly pointed out it’s not working because the file you are looking for isn’t being hosted by the server, Not sure if there’s a better way but I think you have two options here-
- Generate base64 of the image and put it in src
Check this link for reference.
https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html - If you have a lot of static content consider hosting it on a separate server maybe. then you can use the URL for that static content by the server. ( Just python -m http.server or nginx should do the job )
Hope it helps !