Proof (first isomorphism theorem for groups)
We have shown that $\ker\phi \lhd G$, so the quotient $G/\ker\phi$ is indeed a group.
We want to show that $$\begin{align*} \bar\phi: G / \ker\phi &\to \im \phi \\ g\ker\phi &\mapsto \phi(g) \end{align*}$$ is an isomorphism.
First, $\bar\phi$ is well-defined since if $g_1\ker\phi = g_2\ker\phi$, then $g_1 = g_2 k$ for some $k\in\ker\phi$. Therefore $$\begin{align*} \bar\phi(g_1\ker\phi) &= \phi(g_1) \\ &= \phi(g_2 k) \\ &= \phi(g_2)\ub{\phi(k)}_{k\in\ker\phi} \\ &= \phi(g_2) = \bar\phi(g_2 \ker\phi) \end{align*}$$ as required.
Next, $\bar\phi$ is a homomorphism since for all $g_1, g_2\in G$, $$\begin{align*} \bar\phi(g_1\ker\phi) \bar\phi(g_2\ker\phi) &= \phi(g_1)\phi(g_2) \\ &= \phi(g_1g_2) \\ &= \bar\phi(g_1g_2\ker\phi) \\ &= \bar\phi((g_1\ker\phi)(g_2\ker\phi)). \end{align*}$$
Moreover, $\bar\phi$ is injective since if $\bar\phi(g\ker\phi) = e$, then $\phi(g) = e$ and so $g\in\ker\phi$ and $g\ker\phi = \ker\phi$. Therefore $\ker\bar\phi = \set{\ker\phi}$.
Finally, $\bar\phi$ is surjective since for all $\phi(g)\in\im\phi$, we have $\bar\phi(g\ker\phi) = \phi(g)$.