fixing image url generation