Update _texture.pyx

Using custom rounding code to better handle negative numbers.