add image io tests for proper error behavior on invalid images - refs #1775
fix jpeg/tiff error handling on failed reads - closes #1775