Add grid overlay on gallery images during editing