modify to select only one image