How to keep dialog open after uploading an image?

To prevent the widget’s dialog from closing once a file has been selected to be uploaded, you should enable preview step for your widget.

If you enable image crop, the preview step option will be turned on by default.