Real-time imaging of the magnetic flux distribution in superconducting YBa2Cu3O7−δ