Added background to scanner sketch and tweaked behavior. Not fully optimised but the idea is realised