WordPress Related Plugin – Adding an image

Have worked it out and have the following code:

<?php $rel = $related->show(get_the_ID(), true);
foreach ($rel as $r) :
echo '<a href="https://wordpress.stackexchange.com/questions/44075/.get_permalink($r->ID).">'.get_the_post_thumbnail($r->ID, array(50,50)).'<div class=page-related-title>'.$r->post_title.'</div>'.'</a>'.'<br />';
endforeach;
 ?>