Visual defect inspector