title: FPDF error: Image file has no extension and no type was specified
body: <p>I am getting the error as mentioned on the title when I try to run my php code which will generate a PDF file. This is the current code I am using:</p>
  
  <pre><code> $pdf = new PDF();
  $pdf-&gt;AliasNbPages();
  $pdf-&gt;AddPage();
  $pdf-&gt;SetFont('Times','',12);
  
  foreach($inventories as $key =&gt; $inventories) :
  
      $image = $inventories['image'];
      $resourceID = $inventories['resourceID'];
      $learningcentre = $inventories['learningcentre'];
      $title = $inventories['title'];
      $quantity = $inventories['quantity'];
      $description = $inventories['description'];
  
      $html= 'Resource ID: '. $resourceID. '&lt;br&gt;Title: '.$title.'&lt;br&gt;Learning Centre: '.$learningcentre.'&lt;br&gt;Quantity: '.$quantity.'&lt;br&gt;Description: '.$description.'&lt;br&gt;&lt;br&gt;';
      $pdf-&gt;Image('images/'.$image,10,6,30);
      $pdf-&gt;WriteHTML($html);             
   endforeach; 
  
  $pdf-&gt;Output();
  </code></pre>
  
  <p>My images are currently stored in the images folder and I have converted the images file type to "File" by using these codes:</p>
  
  <pre><code>$fileTypes = array(
          'image/pjpeg',
          'image/jpeg',
          'image/png',
          'image/gif'
      );
  
      // default value for unsuccessful move file
      $successfullyMoveFile = false;
  
      // the name of the input type 
      $fileInputName = 'file';
  
      // an array to store all the possible errors related to uploading a file
      $fileErrorMessages = array();
  
      //if file is not empty
      $uploadFile = !empty($_FILES); 
  
      if ($uploadFile) 
      {
          $fileUploaded = $_FILES[$fileInputName];
  
          // if we have errors while uploading!!
          if ($fileUploaded['error'] != UPLOAD_ERR_OK) 
          {
              $errorCode = $fileUploaded['error']; // this could be 1, 2, 3, 4, 5, 6, or 7.
              $fileErrorMessages['file'] = $uploadErrors[$errorCode];
          }
  
          // now we check for file type
          $fileTypeUploaded = $fileUploaded['type'];
  
          $fileTypeNotAllowed = !in_array($fileTypeUploaded, $fileTypes);
          if ($fileTypeNotAllowed) 
          {
              $fileErrorMessages['file'] = 'You should upload a .jpg, .png or .gif file';
          }
  
          // if successful, we want to copy the file to our images folder
          if ($fileUploaded['error'] == UPLOAD_ERR_OK) 
          {
  
              $successfullyMoveFile = move_uploaded_file($fileUploaded["tmp_name"], $imagesDirectory . $newFileName);
  
          }
      }
  </code></pre>
  
  <p>I believed the problem lies with the file type. Is there any way allow FPDF to understand the file type?</p>