Let $\rm X$ and $\rm Y$ be $\rm T_1$ topological spaces. Let $f : \rm X \to Y$ be any function and let $x \in \rm X$.
Then because $\rm X$ is a $\rm T_1$ topological space, if $\mathcal V_x$ is the filter of neighborhoods of $x$, we have $$ \lim_{\mathcal V_x} \mathrm V = \bigcap_{\mathrm V \in \mathcal V_x} \mathrm V = \{x\}.$$
Now suppose $f$ is continuous at $x$. That means that the filter $f(\mathcal V_x)$ is finer than $\mathcal V_{f(x)}$. This implies that $$ \{f(x)\} \subset \lim_{\mathcal V_x} f(\mathrm V) \subset \bigcap_{\mathrm W \in \mathcal V_{f(x)}} \mathrm W = \{f(x)\}$$
Conclusion : if $f$ is continous at $x$ then $$\lim_{\mathcal V_x} f(\mathrm V) = f(\lim_{\mathcal V_x}\mathrm V).$$
More generally, if $\mathfrak F$ is any ultrafilter converging to $x$ :
if $\bigcap \mathfrak F = \emptyset$, then $\bigcap f(\mathfrak F) = \emptyset$ ;
or $\bigcap \mathfrak F = \{x\}$ and because $\mathcal V_{f(x)} \subset f(\mathcal V_x) \subset f(\mathfrak F)$, we have $\bigcap f(\mathfrak F) = \{f(x)\}$.
So in both cases, $$\lim_{\mathfrak F}f(\mathrm V) = f(\lim_{\mathfrak F} \mathrm V).$$