This version deals with both 8-bit and 16-bit images but doesn't work on VTK 6.0 or higher. I also want to make this routine able to convert multi-paged TIFF files.