more failure-tolerant image conversion

hey Martin,

I'm afraid I may have waited too long to merge -- did you refactor the reference parsing stuff I added to nlmmanipulate? the image conversion try in docx2tei should be good, but I'm afraid I'm not sure about the rest of this commit, as I'm getting merge conflicts ... let me know if I should stash and redo.