Femtosecond electron imaging of defect-modulated phonon dynamics