bugfix at determining bounding box of Foreground-Background scribble