We have already seen this exact issue/solution before. So my question is: Why are the images not “prefixed” by default? They would be accessible from the page they are attached to (like now) and they would be also accessible either via include macro or if you move content between pages? It would be necessary to track to “backlinks” for images too, in case you rename the page that holds the images, but that should be doable.
Currently the image handling feels a little fragile, especially if you come from a mediawiki background like me. In mediawiki (MW) if you managed to upload an image (which is a real pain there) it worked “everywhere” nevermind if you included/transcluded/moved around content.
Don’t get me wrong I “never” want to go back to MW but that little point is a bit nicer there