Removed inverse in models (Affine and Shift).

Flipped template and image in metric.