I'm currently stuck at Exercise II 3.22 (a) in Hartshorne's Algebraic geometry, which states
Let $f: X \to Y$ be a dominant morphism of integral schemes of finite type over a field $k$, and let $Y' \subset Y$ be an irreducible closed subset whose generic point $\eta'$ is contained in $f(X)$. Let $Z \subset X$ be an irreducible component of $f^{-1}(Y')$, whose generic point $\zeta$ maps to $\eta'$. Then $$\operatorname{codim}(Z, X) \leq \operatorname{codim}(Y', Y).$$
If $\operatorname{codim}(Z, X) = r$, and $Z = Z_0 \subsetneq Z_1 \subsetneq \dotsb \subsetneq Z_r = X$ is a maximal chain of irreducible closed subsets, I would like to show that the generic points $\zeta_i$ of the $Z_i$'s are mapped to distinct points in $X$. I think this would imply that the closures $Y_i = \overline{\{f(\zeta_i)\}}$ form a chain of irreducible closed subsets containing $Y'$.
But I only know that $f(\zeta_1) \neq \eta'$, because otherwise $Z_1$ would be contained in $f^{-1}(Y')$, which contradicts the assumption that $Z$ is an irreducible component, and also $f(\zeta_r) = \eta$, there generic point of $Y$.
Any help would be appreciated :)