added avatar to users, image to posts