Fix path problems with embedded images.