Bug 962918 - fix screenshot to not break JSON

I have a bigger question is now how to we propagate it to the integration tests? test-perf will have no issue...