Add comment to each code block:

# top left pixel

# top row

# left column

Please, always keep in mind that you want to understand the code when you come back some time.