A pipeline for precise extraction of light curves through forward modelling of a region from time-series wide-field astronomical images