Generating more realistic images using gated MRF's