public static int getOrientation(boolean isImage) {
      ComponentOrientation co = ComponentOrientation.getOrientation(settings.getLang());
      if(isImage) return co.isLeftToRight() ? SwingConstants.RIGHT : SwingConstants.LEFT;
      return co.isLeftToRight() ? SwingConstants.LEFT : SwingConstants.RIGHT;
    }