fix console error for data

Fixing console Type error on socket message event when users favorite or unfavorite an image. The data structures where different, so I conditionally set them in a var. Also, per Jeff's suggestion I changed the update to destroy on removal of the favorite.