WIP: replicate displacement in ImageMath