new createWeka function added for the eigenfacesWeights