                (org-in-regexp org-tsr-regexp-both nil  t)
                (org-in-regexp org-link-any-re nil t))
            (call-interactively #'org-open-at-point)
-         (+org--refresh-inline-images-in-subtree))))))
+         (+org--toggle-inline-images-in-subtree
+          (org-element-property :begin context)
+          (org-element-property :end context)))))))
 
 
 ;; I use this instead of `org-insert-item' or `org-insert-heading' which are too

If on a:
- checkbox list item or todo heading: toggle it.
- clock: update its time.
- headline: toggle latex fragments and inline images underneath.
- footnote reference: jump to the footnote's definition
- footnote definition: jump to the first reference of this footnote
- table-row or a TBLFM: recalculate the table's formulas

              (path (org-element-property :path lineage)))
         (if (or (equal (org-element-property :type lineage) "img")
                 (and path (image-type-from-file-name path)))
             (+org--toggle-inline-images-in-subtree
              (org-element-property :begin lineage)
              (org-element-property :end lineage))
           (org-open-at-point arg))))

      ((guard (org-element-property :checkbox (org-element-lineage context '(item) t)))
