'Copy image files to destination directory.
This overwritten method can use the PIL to convert image files.'

def copy_image_files(self):

    if self.images:
        if (self.config.epub_fix_images or self.config.epub_max_image_width):
            if (not Image):
                logger.warning('PIL    not    found    -    copying    image    files')
                super(EpubBuilder, self).copy_image_files()
            else:
                self.copy_image_files_pil()
        else:
            super(EpubBuilder, self).copy_image_files()
