Kim Kardashian thanks doctors after son's pneumonia