public Dimension getImageDimensions(Object key) { Image i = (Image)images.get(key);
public Dimension getImageDimensions(Object key, int orientation) { Image i = getImageByIdAndOrientation(key, orientation);
    public Dimension getImageDimensions(Object key) {        Image i = (Image)images.get(key);        if (i != null) {            return new Dimension(i.getWidth(null), i.getHeight(null));        } else {            return new Dimension(0, 0);        }    }