Refactor diff image handling
Render pageImage through canvas to work around https://bugzilla.mozilla.org/show_bug.cgi?id=986403