A Bayesian framework for the integration of visual modules