Text this: Nonparametric Bayesian dictionary learning algorithm based on structural similarity