Learning to talk in pictures