Danny Boyle has confirmed he used AI in his new movie, Ink, because it is "good for animals".