autogenerate templates for circle and elliplse