Working prototype with scan and flatfield correction