Tighten up error propagation through IC, IB, and oiiotool.

Now we get nice helpful error messages if any of the input images are
corrupt or incomplete.