It would depend on the capabilities of the specific model of your TV. For my Sony XBR-55A9G, I would have to store the photos on a USB storage device (formatted as FAT16, FAT32, exFAT, or NTFS), then plug it into the USB port on the TV and select that device in the Media Player app on the TV. The online manual for my TV says nothing about being able to display photos as part of a screen saver, only that app.
Your Sony smart TV may have different capabilities and methods.
Alternatively, I could use the Apple TV that is connected to that Sony TV to display some of my photos stored in iCloud Photos, but you didn't mention having an Apple TV box.