Fixed some bugs for plugin imageinput.js.
Merge branch 'master' of https://github.com/qualitri/imageinput