Improve code readability with helper functions for path drawing