The code works for all images now

Generalized the code for different resolutions of images. The user need
not be concerned with making any changes in the code for each of the
different images. Just change the image name and you are set.