Unsupervised Learning Method for Content Based Image Retrieval