added code so that user model can use helper
fixed return of image link
adjust returned json when manipulating friendships