changing dataselection logic of imagechooser