added contrast control on barcode reading