added casperjs screen cpature function