A la vez haces un HREF y además abrirás un PoPUp?
Es "rutaimagen" alguina variable PHP declarada isset() o una ruta válida..
target ??? popup??
Código PHP:
//TU CODIGO
echo "<a href='rutademiimagen' target='popup' onclick='window.open('', 'popup', 'width=100,height=400');void(0);'>enlace</a>";
//PRUEBA ASI
echo "<a href=rutademiimagen target=_self onclick=window.open('index.php','popup','width=100','height=400');void(0);>enlace</a>";
//PRUEBA ASI si tu rutaimagen es variable de PHP
echo "<a href=".$rutaimagen." target=_self onclick=window.open('index.php','popup','width=100','height=400');void(0);>enlace</a>";
Si es "rutaimagen" una variable de php va: "$rutaimagen"