Fix #61: set correct buffer depth for TIFF files