Added function for deleting texture.