Let $B$ be an infinite-dimensional Banach space, and let $M\subset\mathbb{R}^n$ be a neighborhood of the origin in $\mathbb{R}^n$.
Suppose that $I:M\to B$ is a real-analytic function with $I(0)=0$ and such that the derivative of $I$ at $0$ has maximal rank.
Is it true that there exist neighborhoods $U,V\subset B$ of $0$ and a real-analytic diffeomorphism $\phi:U\to V$ such that $\phi\circ I$ is the restriction of a linear map $\mathbb{R}^n\to B$? If so, what is a good reference?
EDIT: I asked this question in the real-analytic setting, but might as well have done so in the complex-analytic case.