solved blob detection problem (swing)