Allow ``xmp_packet_index`` to be passed to ``from_image`` to select XMP packet to use.