Called when the image selected by user.
final void Function(XFile image, int index)? onImageSelected;