Need to restore original images

I need to restore original images, but I don't have access to shell and so I can't use WP CLI. Can you provide me a script?