clean up logic behind the image dataselection