A content-based image retrieval system