Add security measure to prevent non-owner's image deletion