Fix self-text problems. Fix NPE from image links.