fix image url parsing