Error Handling

Adds error handling for invalid image formats.
Adds error messages for failed file handle opening
for output files.

 On branch master

 Changes to be committed:
	modified:   improc