Optimizations to wall drawing functions