Structured sparse priors for image classification