Probabilistic Framework For Image Understanding Applications Using Bayesian Networks