GALLERY: 49ers go wire-to-wire, can't overcome Cardinals