added method to extract metadata from tiff