Added some texture capabilities to renderer
Some fixes, missing code