Handle multiple files, put mask number in filename