How to label defect images