new image processing code in ImagePopperKernel.java