If you remember that light always travels in a straight line, that will help. So, imagine light bouncing off the top of the building. It travels through the pinhole and hits the bottom of the film. That's why, in a ground glass everything is upside down and inverted. It's not really "spread" through the pinhole.