Added property scanRect in order to allow the user to set the area to be scanned for a barcode.