Adding retry for iOS screenshot