changing images to relative paths