added commented logic to find seperate groups of pixel blobs