implemented image grid.