Method to draw curved lines