image = new BufferedImage(imageSize.Get_x(), imageSize.Get_y(), BufferedImage.TYPE_INT_RGB);
image.setRGB(0, 0, viewSize.Get_x(), viewSize.Get_y(), imgBuffer, 0, viewSize.Get_x());
if (compositor != null)
compositor.Native_destroy();
wrapped_src.Native_destroy();
family_src.Native_destroy();
if (raw_src != null)
raw_src.Native_destroy();
return image;