changed run_cosmics to work with the new parameters.
Merge pull request #64 from prathamjoshi/testImages

changed run_cosmics to work with the new parameters.