The impact of template aging on the performance of automatic fingerprint recognition