Rami uses a disposable camera that has a flash. When he wants to take a picture, he holds a button and hears a rising whining sound. When a small light glows, the flash is ready. He presses the shutter button, the flash lights up, and he takes his picture. Which statement best describes how a capacitor is useful in the camera?