Practical Approach to Liveness Detection for Biometric Systems