An Automated System for Fabric Faults Inspection