ENH: replicate displacement in ImageMath