Fix height error in detectBlobs