Fixed 'flipped boxes' issue in image annotation area