Correlation based fingerprint liveness detection