An Expectation Maximization Approach to the Synergy between Image Segmentation and Object Categorization