changed rendering to textures compared to rectangles.