take snapshots of the screen