T2 copy of zxing library