Clear input[type=file] in imageDialog.

This patch clears `input[type=file]` in `imageDialog` before using it.