Time-resolved imaging of atomic-scale electron and nuclear dynamics