I showed you:
Program assumes that the programmer knows the width and height of the image in advance.
That is somewhat restrictive.
I will deal with that issue in a future lesson.