When you open an image in macOS, the system makes an online request to an apple server. That is spying.
What you're saying can be achieved with a pre-trained model. No need to send data from your own files to Apple.