Change DecodeFile so that it uses the C imagemagic interface to read the
file directly, allowing support for RAW formats (among other things).