fix ellipse function bug. Adaptate to rotate func