fix for text with local images