Need overlay the image on video by taking the array of positions
I believe what you're looking for is called tracking. If you have a video in which scrolling happens and need the image to stick on the video, meaning that it follows the scrolling, do the following:


Open up After Effects and import both the image an the video.
Create a comp with the settings of the video and drag the video in it.
Create a Null-Object
On the right hand side, there's a panel called "tracking" or "tracker". Open it.
Select the Video since you want to track its movement and drag the tracking point (you only need one but can use however many you want) on a point of the video with high contrast, like edges or spots. (that makes it easier for the tracker to recognize the movement.)
Track the footage and check if the tracker sticks, correct it if you have to.
As the target, select the null-object and click apply. You need the y-axis at least, having both y and x doesn't hurt though.
Now, drag in the image and pick the whip (the little curly thing) and drop it on the null-object.


If you did all of this, the image will follow the scrolling video. You might need to adjust the size and position of the image, but it will nonetheless follow your track.

Hope this helps, have a good one :)