How can we take pictures of something billion of light years away? I have had this question in my mind for a long time, I thought you guys might enlighten me easily.
I am confused about some space photographs and claims like "this galaxy is 13 billions light years away from us.": how we can take the photograph of something that far, if it is 13 billion light years away wouldn't it take 26 billion light years to take those pictures? 
today this post led me to ask this question, at last: a space picture
There certainly is something I don't know about photography or light years; if you could tell me the logic behind this, I would appreciate it.
I am not a physicist or any science guy, so please tolerate my ignorance.
 A: I got my answer from my colleagues :) And I guess you were trying to say the same. 
Taking a photo does not require sending some photons and waiting for them to reflect back from object. Taking a photo is basically getting the photons that are thrown by the object. In my case photons thrown from the objects 13 billion years ago. 
A: First, a light year is just a unit of distance, and not a unit of time.  It is 9 460 538 400 000 000 metres.  It's widely used as a measure of distance in astronomy as the numbers come out more reasonable, and very conveniently, light travels at 1 light year per year.
You can take a photo of an exploding star 13 billion light years away in exactly the same way as you can take a photo of a candle on the other side of the room.  The only difference is how long the light takes to reach you.  In the case of the candle, the light will take a few nanoseconds to get from one side of the room to the other, in the case of the exploding star, the light will take 13 billion years.
Anything that is glowing is emitting photons (little particles of light).  These stream out in all directions.  If you point a camera at the glowing thing, then your camera will capture some of those photons.  If it's a film camera, then the photons will cause a chemical reaction in the bits of film they hit.  If it's a digital camera, the photons will cause electrons to be knocked out of place, and the camera can measure this.
When photographing things a very long way away, you usually need a long exposure.  This is because most of the photons emitted by the exploding star will never reach you - they are spreading out in all directions, and only a few will happen to go exactly in your direction.  This exposure could be minutes or hours to collect enough photons to measure.  However, there is no particular relationship between the length of the exposure and the distance away of the thing you are photographing.
A: The error is probably in this statement

if it is 13 billion light years away wouldn't it take 26 billion light years to take those pictures?

I think you are imagining that cameras send out light to the objects, and when this light comes back records the light as an image. Not really. Cameras merely record the light they see from that area. So if that area is 13 billion light years away (not sure how credible source is) then all that means is that the light you are capturing today is the light that galaxy emitted 13 billion years ago. 
Imagine for instance Anna and Bob are playing catch with a ball. Anna throws the ball to Bob. Bob receives the ball, and says the ball came at 3:00pm sharp. But the ball was in the air for 1 minute (anna is a slow thrower). That means Anna threw the ball at 2:59, even if Bob recorded it at 3:00. In this scenario, Bob is acting much like a camera acts, by receiving information (in this case a ball, in a camera's case it would be light from galaxies) The reason that Hubble took photos for 4 months (this might be wrong, I'm no good with photography) is that the longer it receives the information, the more 'background' light that we don't want to capture can be removed. 
Hoped this makes sense.
P.S. may have misunderstood the question. You say 

if it is 13 billion light years away wouldn't it take 26 billion light years to take those pictures?

as if light years are a measure of time. A light year is a measure of distance, the distance light travels in a year in a vacuum. 
A: 
[…] if it is 13 billion light years away wouldn't it take 26 billion light years to take those pictures?

Only if you were using a flash. With a flash, you'd trigger the flash here, 13 billion years later the flash light would have traveled all the way there and illuminate the distant galaxy, and yet another 13 billion years later it would have traveled back again and you could open the shutter and take a picture from the reflected light from your flash.
But you don't take photographs of deep space objects using a flash. You use the light these objects (or some bright objects nearby) emit by themselves. So you simply open the shutter now, and record the light emitted by the galaxy 13 billion years ago. Which means you're depicting the object as it was 13 billion years ago, but since it was kind enough to emit light all that time ago all by itself, without you asking for it or providing illumination, that does not prevent you from taking your picture.
A: As I read the other answers, I find them all to make sense and be correct. Unfortunately, our friend still doesn't seem to grasp them, so I'm going to try to say the same thing (I feel it's correct) from a different approach.
If you take a picture of someone at night time, you might need a flash. This spits out a bunch of light that can get reflected off your subject and captured by your camera. But if you take the same picture of someone in the day time, there's a good chance you won't need the flash: there's already plenty of light floating around for your camera to capture.
Well, that's the same thing going on in space: there's a lot of light floating around. It's going to float around whether or not a camera is there to capture it. It's just going to go outward from the star or quasar or whatever produced it, and it's going to keep going until it runs into something. Maybe it runs into something close to what produced it. (Light from our sun does this when it hits us, we're pretty close.) Or maybe it runs into something super far away, like on the other side of the universe.
The key is that the light is already there. That's why we put the camera there. To capture the light that's already just kinda floating there.
Your 26 billion year scenario could make some sense: if we wanted to shine a "flash" at our target, flooding it with light to see what bounces back to us so we get a clearer picture, we could do that, and it would indeed take 26 billion years. (Probably longer, since it's probably accelerating away from us.) Well, in theory we could. The flash we made would probably be powerful to incinerate the earth, but that's a small price to pay to give some quasar its own selfie, right? We just have to hope we get it developed in time.
A: Basically, what you (and the camera) see today maybe does not exist anymore. In the case of objects millions light years away, they were there millions of years ago and now we see something that does not exist, we see the image of what that "thing" looked originally millions of years ago. We see it because the image (light) only now reached us
A: Just snap photo. You will have a photo of the object how it appeared 13 billion years ago, if it is 13 billion light years away. As the light has been traveling for that length of time. A light year is just a unit of measuring vast distances, the distance it takes light to travel at 186,000 miles per second in a year. One single light year is about 5.88 trillion miles.
 If you want a photo of the object as it looks at this moment, you will need to wait 13 billion years to take the photo plus or minus any change in distances. The object may not still be there.
A: when we get the light of it we can have a picture of it. it means if the light has not reached us till now then we can not get the picture.
