if its a white background you might want to try and "magic wand" them, if u get them selected, just copy and paste into a new layer.
Or
If its a white background just copy the layer, magic wand the white, and delete it. (then u should only have your rivets left)
You might want to add a screenie of your problem, not sure if i understand your problem