optimization of logo drawing