Add THUMBNAIL_UPSCALE setting

This setting allows upscaling the source image if needed,
so that the result matches the requested size instead of being smaller.
I didn't remove anything, for explanation see this particular commit: https://github.com/vlakoff/Imagine/commit/4972d17a5e108fc82f922aad64ef81ec964b75a0