Added config schema and matrix rotation for polygon.