public function setContentFile($file)
    {
        $type = $this->getFileMimeType($file);
        // Check for $type === '' to address MIME check not working on XAMPP Windows
        if ($type === 'image/jpeg' || $type === 'image/tiff' || $type === '') {
            if (function_exists('exif_read_data')) {
                $this->exif = exif_read_data((string)$file);
            }
        }
        parent::setContentFile((string)$file);
    }