one hour into work
photos index shows photos from deleted users
fixed script

added the script in a tag in the layout page
nil