Added some formatting to the image processor.

The image processor was throwing errors that were not descriptive enough. They are now throwing more descriptive errors.