Add read() to ImageIO to detect image type and read image