added check for screenshots