Proof (continuous image of compact set is compact)
Let $\mathcal{U}$ be an open cover of $f(X)$.
Since $U\in \mathcal{U}$ is open and $f$ is continuous, $f\inv(U)$ is open, so $\sb{f\inv(U)}{U\in \mathcal{U}}$ is an open cover of $X$.
By compactness of $X$, $\mathcal{V}$ has a finite subcover, say $\set{f\inv(U_1), \ldots, f\inv(U_N)}$. Then $\set{U_1, \ldots, U_N}\subseteq \mathcal{U}$ is an open cover of $f(X)$.