optimize circle drawing