Add clip() method to shape.