Minor optimizations to patch drawing functions