fix and safe guard for double verts

safe check for double verts (removes both verts that would be double)
forgot to put the imageframe path writing back on