2. Find connected sets of images