Use config.reportDir when storing reports/images
Modify config to include reportDir
Better error handling

Now with stack traces.