A unified cycle-consistent neural model for text and image retrieval