Coded Texture class. but not working