Made the degree of parallelism for screenshot taking configurable