Don't really understand. You have deleted a picture but it dosen't show "404 not found"?
I use .htaccess in the image folder, and have "ErrorDocument 404 https://domain.com/404". So if anyone tries to access a deleted image they get redirected to my chevereto site's 404 page.