Add IPTC extraction function

Fork from @matrei now up to date with the master branch from @jseidelin.

Adds IPTC extraction.