refactor render circle to a file