Fixes to QR code scanner

Signed-off-by: Udayan Banerji <ubanerji@alumni.usc.edu>