Comparative Study and Optimization of Feature-Extraction Techniques for Content based Image Retrieval