Add IPTC extraction function

Fork from @matrei now up to date with the master from @jseidelin.