BUG: corrected a major bug that introduced a shift between the images and the transforms.