Spin collective mode and quasiparticle contributions to STM spectra of d-wave superconductors with pinning