Generating preview image for PDFs. First step in thumbnail task. Fixes #243
Fixed left margin on spinner. Fixes #666