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

I don't know how useful is this for other people. We need that for our application and i want to share it :-)