"The 17.5.1 update removed the scanning of the filesystem that was added in 17.5 to prevent Deleted Photos stored outside of the photo library to re-appear ... it is not possible to conclude how the photos remained on the filesystem in the first place"
https://www.synacktiv.com/inside-the-ios-bug-that-made-deleted-photos-reappear