Scientists portrayed in biology textbooks are predominantly white men, according to a US study.