Assume that $f:\mathbb{R}^{2}\rightarrow \mathbb{R}^{2}$ is a continuous on a set $A$. Let $B \subset A$ be a generic set in $\mathbb{R}^{2}$ i.e, the countable intersection of the open and dense subset.
Question: Suppose that the set of $f(x)$ for $x\in B$ is closed and convex set. Is the set of $f(x)$ for $x\in A$ closed and convex?
My attempt: Since $B$ is a generic set, for every $x\in A$ there is a sequence $x_{n} \in B$ convergents to $x$. Since $f$ is continuous, $f(x_{n}) \rightarrow f(x)$. Then, I don't know how to get result.
If the answer is negative, then under which assumption it holds.