drawing a rectangle when scanning barcodes