I had recently learned about the train scene in the movie "stand By Me" and am guessing this applies to this photo.
Is the train scene real in Stand By Me? The look was achieved using good old-fashioned camera trickery. The filmmakers employed a 600mm, long-focus lens shot with the telephoto end. This method compresses the image and made it look like the train was right behind the boys, when in reality it was on the far end of the trestle the entire time.