Application of wavelet decomposition and gradient variation in texture image retrieval