Added the option to restrict the production of photons to a region and specify template parameters for the config file on the command line