An example of using Array.reduce to create a sequence of promises of screenshots