find the distance which the image will move.