work in progress: start enhancing tiff reader to handle bits per sample