Proposed fix:
We can reduce the if condition to this:
if image_meta.get(key) != orig_image_meta.get(key):
Proposed fix:
We can reduce the if condition to this:
if image_meta.get(key) != orig_image_ meta.get( key):