Use the camera for this.
Got the idea from @me-_-_- 's "Scaredy cat" project which does something like this. (Scaredy cat: https://scratch.mit.edu/projects/221321169/ )