Fixed a bug that image selection does not work in Firefox