Adding a cpp file for Texture

Adding a cpp file for Texture