added support for taking screenshot from current view and saving it to local machine as an image file