MAGIC: Modular Auto-encoder for Generalisable Model Inversion with Bias Corrections