update relative path for image