Add get_metadata_from_tiff function and test (92% coverage)