wrote a horrible blobDetection method