When working with objects (like an image in this case), always check if it exists before calling a method (like url()) on it:
<php
$image = $author->images()->first(); // `$author->image()` would give you the first image as well
if($image):
?>
<img src="<?= $image->url() ?>">
<?php endif ?>