In the book I am reading it states that any map of sets $f\colon S \to T$ gives us an equivalence relation $\bar{S}$ defined by $a\sim b$ if and only if $f(a)=f(b)$. This all makes sense to me, but then the book states how the set $\bar{S}$ of equivalence classes is equal to the image of the map. Each equivalence class is a subset of $S \times S$, so how exactly is this the case? Does the author mean that each equivalence class could basically be represented by $f(a)$, that is, represent $[a]$ as $f(a)$ as every $x \in [a]$ maps to $f(a)$ by definition?
Any help is appreciated.