frontend edit - image/attachment deletion (#562 related)

- deleted image files only if unused
- added Clear button for file select fields
- fixed "click to enlarge" problem