PAHMA-979: catch errors in extract image metadata