program to determine whether an image of a shred belongs to the edge of a page