<BUG>() -> imageRepresentationHandler.createBufferedImage(imageSegment.getNumberOfPixelsPerBlockHorizontal(),imageSegment.getNumberOfPixelsPerBlockVertical()));</BUG><CONTEXT>checkNull(imageSegment, "imageSegment");checkNull(targetImage, "targetImage");checkImageMode(imageSegment);final ImageMask imageMask = getImageMask(imageSegment);ImageBlockMatrix matrix = new ImageBlockMatrix(imageSegment,<extra_id_0>matrix.forEachBlock(block -> {</CONTEXT>
() -> imageRepresentationHandler.createBufferedImage((int) imageSegment.getNumberOfPixelsPerBlockHorizontal(),(int) imageSegment.getNumberOfPixelsPerBlockVertical()));