change filename, print_photometry to save_photometry