change images to relative paths