Tweaked TPAStretch

Added support for stretching by dimensions.