bezier.cpp : drawing optimization