This is a mod that will replace the country name with the correct image in account-details..see screen shot

Account-details.php
Find

Account-details.php
Find
//$country
$res = mysql_query("SELECT name FROM countries WHERE id=$user[country] LIMIT 1") or die(mysql_error());
if (mysql_num_rows($res) == 1){
$arr = mysql_fetch_assoc($res);
$country = "$arr[name]";
}
Replace with
//$country //Created by fozshell
$res = mysql_query("SELECT name,flagpic FROM countries WHERE id=$user[country] LIMIT 1") or die(mysql_error());
if (mysql_num_rows($res) == 1){
$arr = mysql_fetch_assoc($res);
$country = "<img src=". $site_config['SITEURL']."/images/flag/$arr[flagpic] title='$arr[name]' />";
}