get metadata for images