extract image metadata