Nonparametric Bayesian Texture Learning and Synthesis