Joint sparse representation and locality preserving projection for feature extraction