fix image id conversion