Here you go. About 10 lines of Lua and a bit of work with Paint.NET. These are all generated procedurally.
To calculate the editorIcon value for a given icon, just add up the number to the left and top of it. ie. the Teleporter icons start at 30+6=36. I don't know about the repetition and how the editor knows to rotate the icons. I presume you just use the first value and then it adds 0,1,2 or 3 to it depending on the facing?