Image Registration Using Dynamic Space Warping