updated enlargeBoundingBoxByPoint method