optimized draw code with static buffer canvas