Given a linear transformation $\textsf T : \textsf V \to \textsf V$, suppose that $\textsf V$ is spanned by $\operatorname{im} (\textsf T)$ and $\ker (\textsf T)$. Prove that if $\textsf V$ is finite-dimensional, then $$\textsf V = \operatorname{im}(\textsf T) \oplus \ker(\textsf T)$$
I know that I need to show that $\operatorname{im}(\textsf T) \cap \ker (\textsf T) = \{ 0 \}$. Further, if $\textsf T$ is surjective the result follows directly from the rank-nullity theorem. However, I am stuck on the case where $\textsf T$ is not surjective.
This is not a duplicate of this question because here we are not raising $\textsf T$ to $\dim (\textsf V)$.