Image Parsing with Stochastic Scene Grammar