Allow specification of padding for shape containment.