Consider changing from zbarimg to zxing for barcode reading
zbarimg is pretty old now and not so actively maintained. zxing-cpp (not the original java version) is newer and appears to be more maintained. Also zxing handles a wider variety of barcodes (inc pdf417 which might be useful for extra pages)