Face recognition in low-quality images using adaptive sparse representations