ESP32 SPIFFS image Webfile

I have just read the thread regarding ESP32 SPIFFS and Webfile and I have a similar question :

In randomnerdtutorials.com there is an excellent article :

where the ESP32 acts as a Webserver & reads values from a number of differerent sensors and sends these to a webpage.

The page automatically refreshes, and the index.html file being used is stored in SPIFFS (the original program used an SD-card)....

Every time it sends the index.html to the client, it also checks status of sensors (temperatures, etc.) and includes in the file as XML data.
This makes it very easy to add/change/delete sensors & values that will be sent to the client.

I now would like to include some locally stored spiffs iconfiles (.jpg) in the data sent to the client (i.e add a red symbol icon next to the displayed temperature value, if the value is to high etc. etc.)

So my question is : How can I include them in the XML code part of the program ??

(My icons are stored in SPIFFS, and I can access them using other programs with other libraries, so I know the are okay and can be used...)

I've attached the main program & the index.html as they exceed the size limit of included code snippets
(I had to rename the index.html attachment to index.html.txt as html-files are not allowed as attachments)...
to

The files are from Rui Santos randomnerdtutorials,com,
(ESP32 Web Server with BME280 – Advanced Weather Station | Random Nerd Tutorials),
the only change i have made here is to store the index file in SPIFFS instead of using a separate SD-card reader)...

main.ino (6.17 KB)

index.html.txt (3.94 KB)