Fixed compatibility issues in Microsoft IE when uploading images.