Best way to make fake path in linux?

Working part: I have folder with images for my website, but for local purpose, it is not necessary to show real images. I wrote php script, which serves fake image only with text of whole demanded path, script is located on root of image folder and actived for everything by .htaccess.

The other part – making thumbnails by php script is working directly in filesystem, so Apache does not affect these – and I have problem with non exesting folders, files, etc. Is there some nice way to make simmilar fake path directly in filesystem?

I’m using docker image for this problem, so I’m able to do everything inside this image.
I’m avoid to make changes directly in scripts, because of temporary situation of server changing (change the path to serve over apache etc is not possible).

Thank you for your advice :).

Source: Docker Questions