Update parameter name
Add fallback to default mode

This allows to omit the mode when using other settings:
    thumbnail(..., THUMBNAIL_UPSCALE)
instead of :
    thumbnail(..., THUMBNAIL_INSET | THUMBNAIL_UPSCALE)