Fix for saving to io.BytesIO()
Added test for different compression types.
hoist import, move test to libtiff
Merge pull request #1012 from wiredfool/libtiff-save-bytesio

Fix for saving TIFF image into an io.BytesIO buffer