Exercise: Let $f:(X,d)\to (Y,\rho)$ be a continuous function. Let $A\subset X$ such that $\overline{A} = X$. Show that if $f$ is surjective, then $\overline{f(A)} = Y$.
What I've tried: If $f$ is surjective then for every $y\in Y$ there exists at least one $x\in X$ such that $f(x) = y$. We have $f(A) = \{f(x)\text{ for } x\in A\}$, and so $\overline{f(A)} = \overline{\{f(x)\text{ for }x\in A\}}$. I don't really know how to translate this into something useful.
Question: How do I solve this exercise?