Let $f : (X, d_X) \to (Y, d_Y)$ be a continuou map between metric spaces. Assume $A, B \subseteq X$ satisfy $\bar{A} = \bar{B}$. Show that $\overline{f[A]} = \overline{f[B]} $
This is what I did so far
Attempt at proof: Let $y \in \overline{f[A]}$, then either $y = f(a)$ for some $a \in A$ or $y \in \overline{f[A]}\setminus f[A]$.
In the first case since $\overline{A} =\overline{B}$ we have $A \subseteq \bar{B}$ hence $f(a) \in f[\bar{B}] \subseteq \overline{f[B]}$ by continuity. So $y \in \overline{f[B]}$ in the first case.
In the second case I tried to show that if $y$ is a limit point of $f[A]$, then $y$ is a limit point of $f[B]$ but I got stuck.
Is there an easy (sequence free) way to do this without having to view limit points as the limit of sequences?
If so then this must generalize to arbitrary topological spaces correct?