Let $(X,d)$ and $(Y,d')$ be metric spaces and $f:X \longrightarrow Y$ a continuous function. I need to show that, if $X$ is separable, so the image of $f$, with $d'$, is separable too.
I've though in showing it by using the fact that, if $X$ is separable, then there existis an open base of $(X,d)$ that is countable. Since I already know that $(X,d)$ is separable, there is an bijection $\phi: \mathbb{N} \longrightarrow X$ in the form $\phi(n)=B(a_n,\delta)$ and, as $f$ is continuous, it takes the $B(a_n, \delta)$ to $B(f(a_n), \varepsilon)$. With that, I've though to say that there is a bijection $\pi=f \circ \phi: \mathbb{N} \longrightarrow Y$ in the form $\pi(n)=B(f(a_n),\varepsilon)$ to show that that base of $f(X)$ is countable, but i'm unsure if this is enough, or even right to conclude.