I put this together from this link. Perhaps it will work for you.
<?php
function get_the_title() {
echo "result of the get_the_title()";
}
// A few settings
$img_file = 'http://www.abarrak.com/public/icons/stackoverflow-icon.png';
// Read image path, convert to base64 encoding
$imgData = base64_encode(file_get_contents($img_file));
// Format the image SRC: data:{mime};base64,{data};
$src = 'data: '. $img_file .';base64,'.$imgData;
// Echo out a sample image
$img = '<img src="'.$src.'">';
echo "<a target='_blank' href='https://www.wbesite.kom". get_the_title()
."'>" . $img . "</a>";
?>