AFI: populate magnification and physical pixel size metadata

Fixes #12360.
Merge pull request #1162 from melissalinkert/afi-metadata

AFI: populate magnification and physical pixel size metadata