Fix wrong argument order in takeScreenshots