Family thanks firefighters who rescued them from burning apartment