Check image dimension after transformation before barcode decoding
This allows us to discard all images that are larger than the barcode
scanner, and are therefore useless to even attempt to decode. Since
those are particularly expensive, this speeds up the extractor test
suite by almost 20%.