extracted label bounding point calculation, added line label support