Mathematical basis of eigenimage filtering