fix image url generation