for (int id = 0; id < images.getMaxId(); ++id) {
for (int id = 0; id <= images.getMaxId(); ++id) {
    public Enumeration getImageIds() {        Vector v = new Vector();        for (int id = 0; id < images.getMaxId(); ++id) {            if (images.containsId(id)) v.add(Integer.toString(id));        }        return v.elements();    }