Graphical Models and Image Processing