modify image url function