Top

go to (samedir) index.html

go to subdir1/index.html

go to subdir2/index.html

go to subdir3/index.html

go to /subdir4/index.html

go to google

Now image.png:

Now subdir1/image.png:

Now subdir2/image.png: