Automatic Image Annotation and Retrieval: A Survey