An Enhanced Algorithm for Thermal Face Recognition