Adaptive quantum-thermal imaging