now the Haar detector looks very similar to the original code from 2.4.x