working code for smile and face detect, but needs improvement on smile detection