update relative paths on images