The iconic horror filmmaker had been battling with brain cancer.