image now removes points that are just the edges of the box