changes page images to relative paths