The film received poor reviews but has stormed the box office, taking $217m (£160m) globally.