Added a new config option to "takeScreenshots" function to use a own fileextension instead of ".jpg", default is already ".jpg".