adds selected class to all images