moved textures into a self contained object. created per loaded texture,and stored in the old texture vector.