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.
and here, you see the BC break. The interface says it accept strings (and you haven't updated it). Your implementation throws an exception in such case