A content based image to image retrieval system