I used your modified wp importer. It imported the template and it looks the same - no problem there - however although the images are showing, they have not been imported into the media library. SO I’m guessing they are still referencing the original media.
Doesn’t the import template also import associated media? If so, where are these stored?
If not, what happens if the reference media is deleted (i.e. say if it was a staging site it was imported from that was eventually deleted).
If you just export/import the templates/pages/posts, it won’t include the images along with it. You’ll have to export/import the media library separately as well. Sorry to say but that’s how the native exporter/importer works.