minor speed improvement to Texture