SD card image to webpage issue

The server gives the html for a requested page. The client analyses the html, sees e.g. an image tag and requests the image from the server.

So you need to be able to handle two requests; one for e.g. index.html and one for the image.

You can press in the browser and check the requests (in firefox you can find them under console and network tabs); not sure about other browsers.