Markov fields, correlated percolation, and the Ising model