avoid callling TIFFs global structures ref #2391