below
$imgna = $image['image_name'] = strtr($image['image_name'], "éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
Insert:
$imgna = str_replace(array(" ", "-"), array("_", "_"), $imgna); ### " - " used as a string separator in URL, it might break the link if image name has such character
$imgna = urlencode($imgna); ### make sure any other non-latin letters or special characters converted to a proper url string