Add transform matrix convert for rect and ellipse