Study of various image features for classification and their usage in content based image retrieval with a medical application