Semantic image retrieval by uniting deep neural networks and cognitive architectures