protected function getImage(array $contents, $alt)
{
if (!isset($contents['image'])) {
throw new MediaObjectException("You must pass in an image to each object");
}
$image = $contents['image'];
$attributes = new Attributes(['class' => 'media-object', 'src' => $image, 'alt' => $alt]);
return "<img {$attributes}>";
}