The camera uses a certificate to sign the authenticity of the photo taken and some metadata. Any editing app wraps that signature with its own signature stating it was modified. You end up with a chain of provenance. And any generated photo is either missing a chain, or when un-wrapping, its origin cert isn't from a camera.