Your proof has some problems. As I commented on your question, I think you can find this out yourself by trying to justify each step you take. This is what you need to do in a proof: write down exactly why you can make some steps.
In general, if we have to prove an 'iff' statement, this is done by proving to implications ($\Rightarrow$). In your case, this means that we need to prove two things:
- $B \subset \operatorname{Rng}(f) \Rightarrow f[f^{-1}(B)] = B$
and
- $f[f^{-1}(B)] = B \Rightarrow B \subset \operatorname{Rng}(f)$.
The first part asks you to prove an equality of sets. This is usually done by showing that the left hand side is a subset of the right hand side and the right hand side is a subset of the left hand side:
$f[f^{-1}(B)] \subset B$ and $B \subset f[f^{-1}(B)]$. (this is also called 'proving two inclusions'). Inclusions are generally proved by taking an arbitrary element from the first set and showing it is also an element of the second set.
For the prove itself:
- assume that $B \subset \operatorname{Rng}(f)$. We need to prove two inclusions.
Let $t \in f[f^{-1}(B)]$, then there is an element $s \in f^{-1}(B)$ such that $f(s) = t$. By definition of $s$, we have that $t = f(s) \in B$ and therefore $f[f^{-1}(B)] \subset B$.
Let $t \in B$. Since $B \subset \operatorname{Rng}(f)$, there is an $s \in S$ such that $t = f(s)$. Since $f(s) \in B$, $s \in f^{-1}(B)$ and we have $t = f(s) \in f[f^{-1}(B)]$. This proves that $B \subset f[f^{-1}(B)]$ and concludes the prove of this implication.
- Assume that $f[f^{-1}(B)] = B$. We need to prove that $B \subset \operatorname{Rng}(f)$.
I will let you do this one. If you have any problems, let me know.