set filemode for written files
changed option parser to may omit pictures parameter