title: tempnam() error in when display images using tcpdf, php 7 and drupal 7
body: <p>We are getting below error when generating pdf file using tcpdf in drupal 7. </p>
  
  <pre><code>Notice: tempnam(): file created in the system's temporary directory in TCPDF_STATIC::getObjFilename() (line 296 of /var/www/html/sites/all/libraries/tcpdf/include/tcpdf_static.php).
  </code></pre>
  
  <p>When we commenting the below code, this error will disappear</p>
  
  <pre><code>$path = 'sites/default/files/'.$user-&gt;mail.'/'.$sign_file;
     $tcpdf-&gt;Image($path,145, 102.75, 40, 15, $sign_filetype , '', '', true, 150, '', false, false, 1, false, false, false);
  </code></pre>
  
  <p>File permissions of this file is </p>
  
  <pre><code>-rw-rw---- 1 apache apache 5917 Mar  4 23:10 sign.png
  </code></pre>
  
  <p>Version details are TCPDF module - 7.x-1.0-beta1 and php    7.2.27. Thanks in advance for any suggestion to resolve this issue.</p>