fixing absolute paths to images