An example of using Array.reduce into a sequence of promises of screenshots