Terry Gilliam is the acclaimed director of “Brazil,” “The Fisher King,” and “Twelve Monkeys,” among many others. With his most recent release, “The Imaginarium of Dr. Parnassus,” he faced a challenge that many might find insurmountable: the loss of his lead actor. Star Heath Ledger died mid-filming, and Gilliam had to find a way to continue the movie-making process.