ADD: bezier contour svg writer
REFACTOR: extract function for raster rendering
ADD: bezier contour raster renderer
REFACTOR: extract class for contour optimization
FIX: crash when optimize bezier contour