script for timelapse screenshots