@Override
      public Dimension preferredLayoutSize(Container parent) {
        return imageComponent.getPreferredSize();
      }
@Override
      public Dimension preferredLayoutSize(Container parent)