Joe Wright to direct 'The Woman in the Window'