So when the tree loads the collapse/expand image urls are correct, e.g.:
But after expanding (and collapsing), the image urls suddenly are replaced by
So without the ~wordpress part and thus incorect URLs. I found this behaviour in both Firefox 3 and Internet Explorer 8, so I suspect it is a bug in your script.