Supervised and Projected Sparse Coding for Image Classification