/**
  * Return of thumbnail of given image
  */
 public static function getThumbnail()
 {
     global $wgRequest;
     wfProfileIn(__METHOD__);
     $name = $wgRequest->getVal('imageName');
     $image = Title::newFromText($name, NS_FILE);
     // fit thumbnail inside 200x200 box
     $thumbnail = WikiaPhotoGalleryHelper::renderThumbnail($image);
     wfProfileOut(__METHOD__);
     return array('thumbnail' => $thumbnail);
 }