Restriction of Mapping to Image is Surjection

Theorem
Let $$f: S \to T$$ be a mapping.

Let $$g: S \to \mathrm{Im} \left({f}\right)$$ be the restriction of $$f$$ to $$S \times \mathrm{Im} \left({f}\right)$$.

Then $$g$$ is a surjective restriction of $$f$$.

Proof
The fact that $$f: \mathrm{Dom} \left({f}\right) \to \mathrm{Im} \left({f}\right)$$ is a surjection follows directly from Surjection iff Image equals Range.

Comment
Thus, for any mapping $$f: S \to T$$ which is not surjective, by restricting its range to its image, it can be considered as a surjection.