added support for specifying a file name for the screenshot