Images compares the given images to each other and returns an error if they differ.
Indexes compares the given indexes to each other and returns an error if they differ.
Layers compares the given layers to each other and returns an error if they differ.