Time-dependent thermal X-ray afterglows from GRBS