Add support for customizing allowed image extensions.