Fix pdf and image viewer discrepancies
Fix pdf and image viewer discrepancies

sagemathinc/smc,tscholl2/smc,tscholl2/smc,DrXyzzy/smc,tscholl2/smc,DrXyzzy/smc,sagemathinc/smc,tscholl2/smc,DrXyzzy/smc,tscholl2/smc,sagemathinc/smc,sagemathinc/smc,DrXyzzy/smc