use c# instead of javascript to render elipse