change image links to relative paths