Use a pair of sunglasses over your camera lens to filter the lines out of your pictures. It will clear things right up for you.
That works well, and it's because it slows the shutter speed down so that it doesn't pick up the high speed flickering. Magnetic is 60hz so 1/60th or slower shutter speed will do it, but digital are a lot higher so a faster shutter speed is fine.