Add check for pyfits versions that don't have CompImageHDU and raise a sensible exception.
(#299)