Add assert to check that images have the same scale