moved getCascadeBoundingBox() to utils