images displayed on grid change code