Fix a TypeError of anon func
Support DnD file into comment to attach
Add support of paste&attach for local image file