[E] Draw Drail Function Improvement

Draw drail function has been improved to remove the repeated
calculations.