Domain Mapping plugin does not resolve uploaded media properly


After mapping my blog to a new domain, I use an offline editor to publish a new post via XMLRPC interface, then I found that the images inside the post were not displayed at all. Further findings revealed that it's a problem with domain mapping that did not resolve the URL properly. For instance, my original blog domain may be, after mapping to, then by publishing through offline editor such as WLW, the images will have the permalink of, and this would not show up. Instead, if I replace the mapped domain with the original domain, then it shows.

Any advice?