Added the missing exceptions in imgprocessing.py and added handling for image specific exceptions in main.py