ImageInputStream iis = null;
ImageInputStream iis;
	public static Dimension getPictureDimension(Picture p) {		if (p.isOnline()) {			// can't find out size without downloading			return null;		}		ImageInputStream iis = null;		try {			iis = ImageIO.createImageInputStream(p.getSource());			Iterator iter = ImageIO.getImageReaders(iis);			if (!iter.hasNext()) {				return null;			}			ImageReader reader = (ImageReader)iter.next();			reader.setInput(iis, true, false);			Dimension d = new Dimension(reader.getWidth(0), reader.getHeight(0));			iis.close();			reader.dispose();			return d;		} catch (IOException e) {			Log.logException(Log.LEVEL_ERROR, MODULE, e);			return null;		}	}