Kepler, Hubble and a number of other telescopes are placed in space exactly for this reason. They can see the skies much clearly and that they can stay focused on a tiny patch of sky for months and take a vivid picture with the faintest of light from the distant stars.