convert media library url's to rest