public UndoableImageEdit(PaintBox box, int undoable) {
		this.box = box;
		String temp = null;
		this.undoable = undoable;

		if (box instanceof FTLRoom) {
			temp = ((FTLRoom) box).interiorData.interiorPath;
			old = temp != null ? new String(temp) : null;
		} else if (box instanceof HullBox) {
			if (undoable == Undoable.IMAGE) {
				temp = ((HullBox) box).getPath();
			} else if (undoable == Undoable.FLOOR) {
				temp = ((HullBox) box).floorPath;
			} else if (undoable == Undoable.CLOAK) {
				temp = ((HullBox) box).cloakPath;
			}
			old = temp != null ? new String(temp) : null;
		} else if (box instanceof ShieldBox) {
			temp = ((ShieldBox) box).getPath();
			old = temp != null ? new String(temp) : null;
		}
	}