change image and file to use url