Imaging thermal conductivity with nanoscale resolution using a scanning spin probe