in detectMultiScale, removed the +1, otherwise the processRectSize can be 1 pixel beyond the image boundary