Add auto screenshot functionality.