DBNs for image classification