Thermally-induced nonlinear spatial shaping of infrared femtosecond pulses in nematic liquid crystals