Implements Shape Padding (Issue #22).