add logic for temp file and screenshot comparison