What is the function of a diaphragm in a film camera?
A. It directs the image to the viewfinder.
B. It focuses incoming light rays.
C. It opens the shutter.
D. It controls the amount of light passing into the film camera.