Fixed bugs in difference image generation; finally fixed bug with single page documents
Authored by: rails 2014-02-21
Parent: [r5761]
Child: [r5763]