EDIT 1 :
It seems that the proof below is wrong, since $\epsilon$ should depend on $x$ and thus $S$ is not necessarily connected.
EDIT 2 : As answered in MathOverflow (in the link posted by @Martin Sleziak), it turns out that the generalization of Darboux's theorem doesn't hold.
For $\epsilon$ sufficiently small, consider : $$S = \{\ (\frac{f(x+te_1)-f(x)}{t},...,\frac{f(x+te_n)-f(x)}{t}) : x\in U \;,\, t\in (0,\epsilon_x)\ \}$$
Since $g:(x,t)$ $\rightarrow$ $(\frac{f(x+te_1)-f(x)}{t},...,\frac{f(x+te_n)-f(x)}{t})$ is continuous, S is connected. Moreover it's clear that $f'(U) \subset \overline S$ (*).
Now for $x \in U$ and $t\in (0,\epsilon),$ consider $h_x(t)=(f(x+te_1),...,f(x+te_n)).$ By the Mean value theorem, there exists $t_0 \in (0,t)$ such that : $$\frac{h_x(t)-h_x(0)}{t}=h_x'(t_0)$$ which is equivalent to saying : $$(\frac{f(x+te_1)-f(x)}{t},...,\frac{f(x+te_n)-f(x)}{t})=(\frac{\partial f}{\partial x_1}(x+t_0e_1),...,\frac{\partial f}{\partial x_n}(x+t_0e_n))$$ Hence $S \subset f'(U)$ (**).
By (*) and (**) we have : $S \subset f'(U) \subset \overline S$, therefore $f'(U)$ is connected.