Fixed a bug in Image.set_uncertainty_from_image