modify add image url function