fix the host image submit issue on firefox