Algorithm to fit galaxies
The two most general, publicly available packages for galaxy image fitting (other than GALFIT) are probably
Imfit and
ProFit. (Note that I am the developer of Imfit.)
There is also Lenstronomy, which is specialized for fitting gravitational lenses; this might be more relevant to your particular needs, though I know very little about it.