Fixed TPAErode & TPAShrink

Small structure changes were required to get em working correctly.