Refactoring and fixing the issue where diagonal shading would occur rather than just the area below the line.