Made tiff convert support directories of images.