work on logic of image selector