checkBottomLeftTopRight and newFrameInBuffer methods added, enlargeBoundingBox updated