fixed image-upload issue in firefox