Adding script to perform phase 0 processing on image file level --- just does statistics and stuffs the results into the database.