[Drawing] Fixed performance issue