Bayesian Nonparametric Discovery of Layers and Parts from Scenes and Objects