Optimization to calculating return path, and draw the return path on screen.