fixed tif saving and double temperature return