Clear input[type=file] in imageDialog.

This patch clears `input[type=file]` in `imageDialog` before using it.
Merge pull request #300 from lqez/clearing_file_input

Clear input[type=file] in imageDialog.