private boolean confirm() {

		if (!checkAndSetUid(uidField.getText(), imageQuestion, dialog))
			return false;

		String s = Modeler.getInternationalText("YouMustSetQuestion");
		String s2 = Modeler.getInternationalText("SetQuestion");
		if (questionArea.getText() == null || questionArea.getText().trim().equals("")) {
			JOptionPane.showMessageDialog(dialog, s != null ? s : "You must set a question.", s2 != null ? s2
					: "Set question", JOptionPane.ERROR_MESSAGE);
			return false;
		}

		imageQuestion.setQuestion(questionArea.getText());
		imageQuestion.setPreferredSize(new Dimension(widthField.getValue(), heightField.getValue()));
		imageQuestion.setBorderType((String) borderComboBox.getSelectedItem());
		imageQuestion.setOpaque(!transparentCheckBox.isSelected());
		if (imageQuestion.isOpaque())
			imageQuestion.setBackground(bgComboBox.getSelectedColor());

		String address = imageQuestion.page.getAddress() + "#"
				+ ModelerUtilities.getSortableString(imageQuestion.index, 3) + "%" + ImageQuestion.class.getName();
		QuestionAndAnswer q = UserData.sharedInstance().getData(address);
		if (q != null) {
			// if the question text has been changed
			if (!q.getQuestion().equals(imageQuestion.getQuestion())) {
				q = new QuestionAndAnswer(imageQuestion.getQuestion(), q.getAnswer());
				UserData.sharedInstance().putData(address, q);
			}
		}

		imageQuestion.page.getSaveReminder().setChanged(true);
		imageQuestion.page.settleComponentSize();
		return true;

	}