Let $f$ be a continuous map from $X$ to $Y$ (with respect to their topologies). Let the equivalence relation ~ on $X$ be defined by: $x \sim y \iff f(x)=f(y)$ Then, $X/\sim$ is homeomorphic to $im(f)$ (equipped with the subspace topology).
A counterexample for the general case would be illuminating as well.
See this answer. Qiaochu Yuan states that this does not hold in general, but it does hold when both $X$ and $Y$ are Hausdorff.