Real-time device-scale imaging of conducting filament dynamics in resistive switching materials