Proof (continuous image of connected set is connected)

Suppose $f(X)$ is disconnected. Let $f(X) = U\cup V$ be a separation. Then $f\inv(U)$ and $f\inv(V)$ are

Therefore $X = f\inv(U) \cup f\inv(V)$ is a separation of $X$.