It was invented in the 30s by RKO Radio Pictures, but it wasn't the first time we saw this technique. Double exposure had already been used as early as 1898 and as far back as 1903 in Edwin S. Porter's "The Great Train Robbery". But it wasn't until 1940 when Larry Butler used bluescreen compositing in "The Thief of Bagdad".