- '--source','ADF Duplex','--mode','Gray','--format','tiff',
- '--batch','out_'.sprintf('%03d',$lastnum).'_%03d.tif');
+ '--source',$use_duplex?'ADF Duplex':'ADF Front','--mode',$options{mode},'--format','tiff',
+ '--batch=out_'.sprintf('%03d',$last_num).'_%03d.tif');