Optical and X-Ray Shadowgraphy of Laser-Heated Cavities