How to edit the image grid