public function uploadImage($file)
 {
     $filename = $file['file']['name'];
     $adapter = new Http();
     $path = BASE_PATH . '/img/position';
     $fileRenameFilter = new Rename(array('target' => $path . '/usr.jpg', 'randomize' => true));
     $adapter->addFilters(array($fileRenameFilter));
     if ($adapter->receive($filename)) {
         $fileFullPath = explode('/', $adapter->getFileName());
         $newFileName = array_pop($fileFullPath);
         return $newFileName;
     } else {
         return 'no-image.png';
     }
 }