Please understand we are not here to provide coding assistance. I've provided examples, tutorials, and similar forum topics to aid you in your usage configuration. Short from coding it for you there's nothing more I can advise. I will and have coded this for you as follows, but this will be the last time. I can not be expected to provide each and every person with their coding requests (see my signature in this regard). I urge anyone that needs coding to please consult the materials we've provided or consider hiring someone to code it for you.
To use the below you need to edit the "Profile image" (avatar) field within CB > Field Management then under Parameters > Layout set the "Profile View Layout" as follows.
Code:
[cb:if avatar!~"/(nophoto_n|tnnophoto_n)\.png$/"][value][/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_gender="female"]<img src="http://YOUR_DOMAIN_HERE/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_f.png" alt="Female" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_gender="male"]<img src="http://YOUR_DOMAIN_HERE/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_m.png" alt="Male" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]
[cb:if avatar=~"/(nophoto_n|tnnophoto_n)\.png$/" and cb_gender=""]<img src="http://YOUR_DOMAIN_HERE/components/com_comprofiler/plugin/templates/default/images/avatar/nophoto_n.png" alt="Unknown" class="cbImgPict cbFullPict img-thumbnail" />[/cb:if]
Replace YOUR_DOMAIN_HERE with your actual site domain. I've implemented support for uploaded avatar, generic female, generic male, and non-gender. All 4 scenarios have been tested as working.