implement formatting for printImageMetadata