Fixed #21201 -- Enable customization of ClearableFileInput

Adding extra methods into ClearableFileInput widget to enable
easier customization of the widget.
Replace the link with `img` is possible by changing the `template_with_initial`, so I didn't made any further changes.