As image comparison often needs to be updated a debug flag should be supported which will write the actual and expected images to disk in addition to the result. This will allow for easy replacement of the file, and checking the differences without a resized image that will be done during comparison to equalize the sizes.