adding code for recording videos of screenshots