The State of the Art in Image and Video Retrieval