fix selecting primary and deleting profile photo. closes gh-353