Believe this should be MAX. With MIN, seems like the test could pass even though the images had different widths (for example, if the images were identical except for the right edge).