added code for eigenfaces