update relative path for images