why are you using lingua.getValue at all?
Are this TVs, which are translated?
discuss.answer
what about:
<?php
$docid = $modx->getOption('docid',$scriptProperties,$modx->resource->get('id'));
$tvname = $modx->getOption('tvname',$scriptProperties,$modx->resource->get('id'));
$tvid = 0;
$value = '';
if ($tv = $modx->getObject('modTemplateVar',array('name'=>$tvname))){
$tvid = $tv->get('id');
}
if ($tv = $modx->getObject('modTemplateVarResource',array('tmplvarid'=>$tvid,'contentid'=>$docid))){
$value = $tv->get('value');
}
return str_replace('./','',$value);
<img src="assets/images/[[+tv.mynumber]]/[[!getRawTVValue? &docid=`[[+id]]` &tvname=`picture`]] ">
Thats it! Thank you so much Bruno!