use ImageIO framework for java wrapper