Fixes drawImage for thumbs

Fixes #4921

And don't think we need to worry fixing #2888 as well, thumb nails just to quickly locate the page and not read it.
either this, or the last line in thumbnail_view.js looks like a duplicate for me