Added variable to estimate the displacement between images