Let $G$ and $G'$ be groups. Let $\phi: G \to G'$ be a homomorphism. Let $H$ be a group of $G$ and let $H'=\{\phi(h): h\in H\}$. Want to show that $H'$ is a subgroup.
Proof:
(i) $H'$ has identity since $\phi(e_G)\in H'$. This is because $\phi(e_G)=e_{G'}$.
(ii) $H'$ is closed because of the following: Let $h_{1}^{'}, h_{2}^{'} \in H'$. Then there exists an $h_1,h_2$ in $H$ such that $h_1^{'}=\phi(h_1)$ and $h_2=\phi(h_{2}^{'})$. Then $h_1^{'}h_2^{'}=\phi(h_1)\phi(h_2)=\phi(h_1h_2)$.
(iii) For each $h^{'} \in H'$ there exists an $h \in H$ such that $\phi(h)=h'$. But, $h'^{-1}=\phi(h)^{-1}=\phi(h^{-1})$. Hence it has inverses.
Did I prove this correctly?