compare optical to X-ray