minor changes to BlobDetector class
code refactoring