convert upload image url to rest