Added new RenderingTarget for textures and substituted code in renderer to use this instead of directly creating and use textures