static ImageSurface addStandardOperationsToImageSurface(final ImageSurface is) { ret componentPopupMenuItem(is, "Invert image", rThread { is.setImage(invertedImage(is.getImage())) }); }