Some improvements in eigenface algorithm