Clean-up `texture` module and make minor fix for TextureImplementation