gf: improved and optimized extended source modelling