AFI: populate magnification and physical pixel size metadata

Fixes #12360.
add missing import
Merge pull request #1188 from mtbc/afi-metadata

AFI: populate magnification and physical pixel size metadata (rebased from develop)