A Bayesian Nonparametric Approach to Image Super-resolution