Wavelet-based Recognition of Facial Expressions and Faces