modified the image selction