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.
same here