meta-for BufferedImage also as WidthAndHeight { static WidthAndHeight imageSize(BufferedImage img) { ret img == null ?: widthAndHeight(img.getWidth(), img.getHeight()); } }