moved JAI to ImageIO for Java 7 compatibility