Attempt to fix not being able to delete images