Added flag to config file to indicate whether the files to be loaded are TIFFs or not. If they are, the number of frames can be inferred automatically. If not, the number of frames must be supplied manually.