pub fn decode(data: &[u8]) -> Result<Image>
Decode a JBIG2 file from the given data.
The file is expected to use the sequential or random-access organization, as defined in Annex D.1 and D.2.