Let $(M,d)$ and $(N,d')$ be metric spaces and let $f:M \rightarrow N$ be a function.
I want to show that $f$ is continuous and closed $\Longleftrightarrow \overline{f(E)} = f(\overline{E})$ for all $E \subseteq M$.
I have already proved that $f$ is continuous if and only if $f(\overline{E}) \subseteq \overline{f(E)}$ for all $E \subseteq M$, and also that $\overline{f(E)} = f(\overline{E})$ for all $E \subseteq M \Longrightarrow f$ is continuous and closed.
I am only missing $f$ is continuous and closed $\Longrightarrow \overline{f(E)} \subseteq f(\overline{E})$ for all $E \subseteq M$.
I would really appreciate some help. Thanks!