Theorem 15.1 in Classical Descriptive Set Theory by Kechris states:
(i) Let $X, Y$ be Polish spaces and $f:X\rightarrow Y$ be continuous. If $A\subseteq X$ is Borel and $f|_A$ is injective, then $f(A)$ is Borel.
I assume that the last statement means that $f(A)$ is in the Borel sigma algebra on $Y$.
(ii) Now in the following corollary he states that $f$ is a Borel isomorphism of $A$ with $f(A)$.
If I now assume that $f$ is an injective function, then it is also injective on every subset of $X$. Also (ii) tells us that it is a Borel isomorphism between $X$ and $f(X)\subseteq Y$. I assume that this is meant to say that we restrict the co-domain of $f$ to its range and then this new $f$ will be bi-measurable with respect to the Borel sigma algebras on $X$ and on $f(X)$ (not on $Y$). Is that correct so far?
Now my confusion comes from the very first statement in this question (i), that for any $A\in\mathcal{B}(X)$, $f(A)\in\mathcal{B}(Y)$. It seems to me that statement (ii) should actually suggest that $f(A)\in\mathcal{B}(f(X))$?
Can maybe someone explain this to me in more detail?