Added storing of overall image width and height and now throws an except...

...ion when a critical key is missing from the metadata dictionary.