Urgent: conditional logic in Image Picker widget is not working