Analysis and Database population for Content Based Image Retrieval