Wrote most of the blobDetection UNTESTED!!