AnnotationDocument: Preserve image metadata
Part of a set of commits necessary to make the previous 2 commits actually work. They're separate commits for history readability.
(cherry picked from commit 1bf0a025)
Co-authored-by: Noah Davis noahadvs@gmail.com