Shortened the makeAScreenshotPromise code so that less lines of code is occupied in the article while still maintaining clarity of the code.