Wavelet extension and gray level co-occurrence matrix for texture defect detection and texture retrieval in small dimension images