Would not the ideal solution be to retain the name of the imported image?
Once the imported picture is in the bitmap gallery, XX/XWD is certainly aware of it's original name. That way the same image can be used site-wide and only once instance exported.

However, this is all very likely academic, I'm sure John has the solution already sorted for a future update/patch