Changed a parameter of assertScreenshot to match that of compareScreenshot.
Improved support for perceptualdiff.