who wrote the screenplay for the dark tower