!7 p { BufferedImage img = cast time(f singleImageFromLastWebcam); ImageSurface is = showImage("Will upload in 3! Close window to stop this.", img); sleepSeconds(3); if (!is.isShowing()) { print("Upload cancelled."); ret; } S imageURL = uploadToImageServer(img, "User webcam image"); print("Image uploaded as " + imageURL); if (postToStefansChat("[IMAGE] " + imageURL)) print("Posted image to chat."); else print("Could not post image."); }