refactor + add 'link' setting, #20

support $NMIMAGES['link'] setting,
to link images to posts