The maverick US director was well-known for his dark, surrealistic artistic visions and his successful mainstream career.