encode image url and decode when get the image url