Fix integration tests. imagediff uses per pixel threshold not overall, provide own implementation for now. Fixes #41