Input images must have the same dimensions.
