I still don't understand the indices logic

I'm curently working on making an image display on screen