Screenshot capture tidy

Tidied up the script that takes screenshots