This is more subtle than it looks. I asked exactly the same question some years back (see [here][1]); but I'm not going to flag this question as duplicate, because the answer that was given to my question at the time, which was identical to @eric's comment above, was **wrong**.

The correct answer is this. Let $f$ be a normalized non-CM newform. Associated to $f$ there is a number field $L = \mathbf{Q}(a_n(f) : n \ge 1)$, and for each prime $\mathfrak{P}$ of $L$, we get a Galois representation
$$ \rho_{f, \mathfrak{P}}: G_{\mathbf{Q}} \to \operatorname{GL}_2(L_{\mathfrak{P}}). $$

It is *not*, however, generally the case that this has open image. There is a subgroup $\Gamma \subseteq \operatorname{Aut}(L / \mathbf{Q})$ consisting of those automorphisms $\sigma$ for which $f^\sigma$ is equal to the twist of $f$ by some Dirichlet character ("inner twists"). The fixed field of $\Gamma$ is a subfield $F \subseteq L$, and Momose showed that there's a finite-index subgroup of $G_{\mathbf{Q}}$ such that for any $\tau$ in this subgroup $\rho_{f, \mathfrak{P}}(\tau)$ has trace in $F_{\mathfrak{q}}$, where $\mathfrak{q}$ is the prime of $F$ below $\mathfrak{P}$. So if $F_\mathfrak{q} \ne L_{\mathfrak{P}}$, which occurs for infinitely many $\mathfrak{P}$ if $F \ne L$, then the image of $\rho_{f, \mathfrak{P}}$ **cannot** be open in $\operatorname{GL}_2(L_{\mathfrak{P}})$.

It's reasonable to expect that the image at least contains an open subgroup of $\operatorname{GL}_2(F_{\mathfrak{q}})$ but this isn't generally true either -- there is an obstruction coming from a Brauer group, which can genuinely be nontrivial! But this weaker statement does, at least, hold for all but finitely many $\mathfrak{P}$, as was shown by Momose.

If $f$ has level 1, then the group $\Gamma$ of inner twists is always trivial, so $F = L$ and the image is open in $\operatorname{GL}_2(L_\mathfrak{P})$. More generally, if $f$ has trivial character it's "usually" the case that there are no nontrivial inner twists. But every non-CM form of non-trivial character has at least one nontrivial inner twist coming from the action of complex conjugation, so this bad behaviour is unavoidable.

All of this is very nicely explained in Ribet's paper "On l-adic representations attached to modular forms. II" (Glasgow Math. J. 27, 1985, 185--194), which you can find on Ribet's website [here][2].


  [1]: http://mathoverflow.net/questions/24076/when-do-the-galois-reps-of-modular-forms-have-open-image
  [2]: https://math.berkeley.edu/~ribet/Articles/rankin.pdf