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