How can i call a buddypress function like 'bp_core_get_avatar( )' from my theme's index.php file or is there any alternative solution for the same..?