Groups in digital image