The following makes for a nice snippet. It creates a figure when an image is dropped into the document.
With drop target set to "image" in gedit 2.19.x. This version will be the stable version in about a month.
Also, could you write actual commit meesages, please?