function twitter_get_media($status) {
if($status->entities->media) {
$media_html = '';
foreach($status->entities->media as $media) {
      $url = $media->media_url_https;
      $link = $media->url;

      $width = $media->sizes->thumb->w;
      $height = $media->sizes->thumb->h;

      $media_html .= "<a href="" rel="nofollow">";
      $media_html .=  "";
      $media_html .= "</a>";
}
return $media_html;
}

Links to the actual tweet/image page and loops through all the images (possibly).