added image grid and click functionality