Domain Mapping plugin does not resolve uploaded media properly

Hi,

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 blog.test.com, after mapping to myblog.com, then by publishing through offline editor such as WLW, the images will have the permalink of myblog.com/xxx/yyy.png, and this would not show up. Instead, if I replace the mapped domain with the original domain, then it shows.

Any advice?