Playing with Markov chains and images