Image preprocessing, facedetection with naive bayes, and using features with decision trees