experimental workaround for Google Glass camera preview bug
added support for scanning inverted barcodes; various other bugfixes