Fix Texture.id and CanvasRenderer patterns along with a codestyle cleanup