added rough implementation of screen shot capturing
Merge screenshot functions and allow specifying file name