conditionalizing image on grid view