Implementing the smile and eye detection technique