Added possibility of selecting the images in the grid