added rough implementation of screen shot capturing