Fixed the image compare functionality.