In linear Algebra there is the Rank-nullity-theorem which states that for a linear map $f:V \rightarrow W$ we have
$$\dim{\operatorname{im}\,f}+\dim{\operatorname{ker}\,f}=\dim{V},$$
which implies
$$\dim{\operatorname{im}\,f} \leq \dim{V}.$$
Does this hold true for general maps $g:V \rightarrow W$?
I was thinking that this is probably not the case as there should be some surjective mapping $\mathbb{R}$ to $\mathbb{R}^2$ which exploits the density of $\mathbb{R}$. Perhaps something along the lines of a space-filling curve? I know there is the notion of fractal dimensionality and I realized that this question probably hinges on the definition of dimensionality. I would appreciate someone clarification or some reference, which might clarify this.
I apologize if this is a duplicate, I couldn't find anything similiar by search.