GL_INVALID_VALUE: Offset overflows texture dimensions. Image texture is not loading

Hi guys,
New to three js, Pls help me out with the following error


Result:

I am trying to follow a tutorial and create a 3d image scroller but the image is not loading as a texture. Below is a link to a codepen(not functional but code is visible) with the code.
https://codepen.io/thejazzblaze/pen/JjwodPV

the handleImages() function in the js is where I am trying to set the textures and the shaders are in the html itself.
Please check it out and help me solve this issue
PS: the tutorial is 2 years old whereas I’m using r155 so that might be the reason but I checked out a lot, still can’t resolve
This the result i should be getting as per the tutorial