fix image migration