code: private String getSingleSize(CmsObject cms, CmsResource res) {
  
          try {
              BufferedImage img = Simapi.read(cms.readFile(res).getContents());
              return "" + img.getWidth() + " x " + img.getHeight() + "px";
          } catch (CmsException | IOException e) {
              return "";
          }
      }
docs: Reads the size of a single image.<p>
  
  @param cms CmsObejct
  @param res CmsResource to be read
  @return a String representation of the dimension of the given image