adding flatfield correction to scan6