Added flipping for Bbox