Text this: Bayesian object classification in nanoimages