Created separate function for creating eigenface system