Upstate man tells deputies about images of him sexually assaulting child, AG says