added texture mapping; works on simple_texture