Fix thumbnail generation

Since changes to the TKP accessors mean we can no longer directly use an HDU
from MongoDB, we rather write a temporary fits file and generate the thumbnail
based on that.
Merge pull request #29 from jdswinbank/iss4316

Fix thumbnail generation