Content based image retrieval : analogies with text