In a regular category we can factor any morphism $A \xrightarrow{g} X$ as $A \xrightarrow{e} E \xrightarrow{m} X$ where $e$ is regular epi and $m$ is mono. This factorization is unique up to isomorphism and we call the subobject $E \xrightarrow{m} X$ represents the image of $f$ or $Im(f)$.
For an arrow $X \xrightarrow{f} Y$ and a subobject represented by $M \xrightarrow{m} Y$ we can make a pullback with some vertex $D$ that gives an arrow $D \xrightarrow{n} X$
We say $f^*(m) = n$.
or equivalently, find a morphism $E \to C$ such that
commutes
I have trouble doing this. My thought was to use the uniqueness of factoring up to isomorphism, but the only suitable factorings are $A \xrightarrow{e} E \xrightarrow{fm} Y$ and $A \xrightarrow{B} C \xrightarrow{n} Y$, but $fm$ is not necessarily mono, so that didn't work out.


Factors $g=nc$ with $n$ image of $g$ and $c$ be a regular epimorphism. Consider the following commutative diagram where both squares are pullback: $\require{AMScd}$ \begin{CD} A@>>>B\\ @VeVV@VVcV\\ E@>>>C\\ @VmVV@VVnV\\ X@>>f>Y \end{CD} Then $m$ is a monomorphism, because pulling back preserves monomorphism and $e$ is a regular epimorphism because in a regular category pulling back preserves regular epimorphisms. By pullback pasting, the outer rectangle is a pullback as well. Consequently, you get a RegEpi-Mono factorization of $g'$. By uniqueness of RegEpi-Mono factorization, it follows that $m$ is the image of $g'$.