A brief answer to settle one of the questions that Baljeet asks: in general, a continuous function $f: \mathbb{R} \to \mathbb{R}$ will not be closed (i.e. enjoying the property of sending closed subsets to closed subsets). Here is one possible counter-example: consider any $a \in (0,1)$ and take $f$ to be the exponential function of base $a$, in other words such that
$$f: \mathbb{R} \to \mathbb{R} \\ f(x)=a^x$$
Clearly $\mathbb{N} \subset \mathbb{R}$ is a closed subset in the order topology (the standard one at work in analysis), however $f(\mathbb{N})=\{a^n\}_{n \in \mathbb{N}}$ is no longer closed:
since $$a^n \xrightarrow{n \to \infty} 0$$
we infer that $0$ is a point adherent to this subset (i.e. in its closure) lying though in the complement of this subset.
A perhaps even clearer counter-example can be found in the instance of
$$g: \mathbb{R} \to \mathbb{R} \\ g(x)=\frac{1}{x^2+1}$$
Indeed $g([0, \infty))=(0,1]$ is not closed.