Generates image captions using markov chains