fix image loss