Offline Recognition of Image for content Based Retrieval