adds if/else statement to render avatar or generic placeholder