Minor fixes on KTexture.