Fix: Instead of nFeatures, the length of the image must be given!