In your second code area you are using double quotes on the second image src, they have to be excaped or made single:
Code:
echo "<div style='width:90px; padding:5px; float:left;'>
<h4><img src='./icon/country/$country.png'></h4><img src='./icon/tank/$country-$name.png'/>
</div>";