Photometry pipeline for SAGES