fix file extension selection bug of ImageIO and SurfaceMeshIO