Fixed relative images in text extractor