tiff: some beginning of support for OME metadata

also add test to identify a bug with RGB thumbnails