blobdetection now uses parameters for certain variables