Update makefile
Adding error case into pgm_image.c and image.c.
Adding intermediate constant for random gen.
Fixup!: Not working.