remove / from image path.