The modular galaxy image simulation toolkit