add catch for Exception to prevent invalid XML exports if an image can't
be read.