Is there anyway to make when browser request some file from server than browser to load another file.

i open
so now the browser send http request to load image
so when browser want to load that image to load this image

i do this now with

i don't know how to explain
please see this picture

i think this can be done with Wininet.dll and WinHTTP.dll