first working version with output including layout and 3 xmp metadata fields