fixed error where images duplicate and other error where friends can appear twice