TEST: using more stable input images for SSD and EM metrics in 3D (both steps), since the invertible displacement field is in 3D, having non-zero values near the first and last slices makes the test not stable across platforms (small numerical differences near the boundary may make the energy profile very different). I simply increased the volume size and set zeros at the boundary slices.