Drawing optimization