Image Parsing via Stochastic Scene Grammar