Fixed a texture bug, added render to texture

Also added a sampler map.