Draw Weighted Line In ImgLib2

Hi,
Apparently there’s no way to draw a weighted line in ImgLib2, other than wrapping the image to ImagePlus of ImageJ (or am I missing something)?

So, how does one flatten an Image in ImageJ after adding an overlay? because when I do this, I lose other images of the stack?